package app.vendorportal.api.data;

import org.hibernate.validator.constraints.NotBlank;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author Bribin
 */
@XmlRootElement(name = "shipping-method-info")
@XmlAccessorType(XmlAccessType.FIELD)
public class ShippingMethodInfo {

    @NotBlank(message = "shipping method code is required")
    @XmlElement(name = "shipping-method-code")
    private String shippingMethodCode;

    @NotBlank(message = "shipping company code is required")
    @XmlElement(name = "shipping-company-code")
    private String shippingCompanyCode;

    @XmlElement(name = "display-name")
    private String displayName;

    @XmlElement(name = "is-air")
    private boolean isAir;

    @XmlElement(name = "business-delivery")
    private boolean bussinessDelivery;

    @XmlElement(name = "max-weight")
    private int maxWeight;

    @XmlElement(name = "max-dimension")
    private int maxDimension;

    public ShippingMethodInfo() {
    }

    public ShippingMethodInfo(String shippingMethodCode) {
        this.shippingMethodCode = shippingMethodCode;
    }

    public String getShippingCompanyCode() {
        return shippingCompanyCode;
    }

    public void setShippingCompanyCode(String shippingCompanyCode) {
        this.shippingCompanyCode = shippingCompanyCode;
    }

    public String getShippingMethodCode() {
        return shippingMethodCode;
    }

    public void setShippingMethodCode(String shippingMethodCode) {
        this.shippingMethodCode = shippingMethodCode;
    }

    public String getDisplayName() {
        return displayName;
    }

    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

    public boolean isBussinessDelivery() {
        return bussinessDelivery;
    }

    public void setBussinessDelivery(boolean bussinessDelivery) {
        this.bussinessDelivery = bussinessDelivery;
    }

    public int getMaxWeight() {
        return maxWeight;
    }

    public void setMaxWeight(int maxWeight) {
        this.maxWeight = maxWeight;
    }

    public int getMaxDimension() {
        return maxDimension;
    }

    public void setMaxDimension(int maxDimension) {
        this.maxDimension = maxDimension;
    }

    public boolean isAir() {
        return isAir;
    }

    public void setAir(boolean isAir) {
        this.isAir = isAir;
    }

}
